﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using CefSharp.Wpf;

namespace Chat
{
    /// <summary>
    /// CefBrowser.xaml 的交互逻辑
    /// </summary>
    public partial class CefBrowser : Window
    {
        ChromiumWebBrowser chromiumWebBrowser;
        public CefBrowser(string url)
        {
            InitializeComponent();
            chromiumWebBrowser = new ChromiumWebBrowser(url);
            chromiumWebBrowser.MouseRightButtonDown += (sender, e) => { e.Handled = true; };
            this.Content = chromiumWebBrowser;
        }
    }
}
